<template>
  <el-form-item :label="标题 + ':'" :label-position="标签位置 ? 标签位置 : 'top'" label-width="auto" :style="字段style" class="清底距">
    <el-input disabled :value="内容" />
  </el-form-item>
</template>
<script setup lang="ts">
import * as em from '@/enums';
import { computed, onBeforeMount } from 'vue';

// 泛型写法👇辣眼睛
const props = withDefaults(defineProps<{
  内容: any;
  编辑否?: boolean;
  标签位置?: string;
  标题?: string;
  字段宽?: number;
}>(),
  {
    编辑否: false
  });

const 字段style = computed(() => {
  let style: any = {}
  style.width = `${props.字段宽}px`
  // style.marginBottom = `unset`
  return style
})

</script>
